package com.lgj.web.route.mapper;

import com.lgj.web.route.model.GatewayRoute;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author guangjie.liao
* @description 针对表【gateway_route(网关路由配置)】的数据库操作Mapper
* @createDate 2022-10-28 18:20:35
* @Entity com.lgj.web.route.model.GatewayRoute
*/
public interface GatewayRouteMapper {

    int deleteByPrimaryKey(Long id);

    int insert(GatewayRoute record);

    int insertSelective(GatewayRoute record);

    GatewayRoute selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(GatewayRoute record);

    int updateByPrimaryKey(GatewayRoute record);

    GatewayRoute selectByServiceId(String serviceId);

    GatewayRoute selectByRouteName(String routeName);

    List<GatewayRoute> queryList(@Param("routeName") String routeName, @Param("serviceId")String serviceId);
}
